/**
 * 猪哥亮开源
 * 作者 猪哥亮
 * 邮箱 1030681978@qq.com
 */
package cn.jnetty.ioc.cons;

import cn.jnetty.ioc.ann.config.AnnotationWrapper;

import java.lang.annotation.Annotation;
import java.util.HashMap;
import java.util.Map;

/**
 * @author 猪哥亮
 * @email 1030681978@qq.com
 * @date 2020/7/6 17:06
 * 描述： 
 *
 */
public class AnnotationMap {
    /**类注解*/
    private static final Map<Class<? extends Annotation>, AnnotationWrapper> ClassAnn = new HashMap<>(16);
    /**方法注解*/
    private static final Map<Class<? extends Annotation>, AnnotationWrapper> methodAnn = new HashMap<>(16);
    static {
    }
    public static AnnotationWrapper getClassAnnByClass(Class<? extends Annotation> clazz){
        return ClassAnn.get(clazz);
    }
    public static boolean containsKeyClassAnn(Class<? extends Annotation> clazz){
        return ClassAnn.containsKey(clazz);
    }
}
